package me.mcx.mcx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import me.mcx.common.annotation.Excel;
import me.mcx.common.core.domain.BaseEntity;

/**
 * 消息信息对象 mcx_message
 * 
 * @author mcx
 * @date 2024-09-22
 */
public class McxMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 是否留言 */
    @Excel(name = "是否留言")
    private Integer isMess;

    /** 名字 */
    @Excel(name = "名字")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 公司 */
    @Excel(name = "公司")
    private String company;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIsMess(Integer isMess) 
    {
        this.isMess = isMess;
    }

    public Integer getIsMess() 
    {
        return isMess;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("isMess", getIsMess())
            .append("name", getName())
            .append("phone", getPhone())
            .append("company", getCompany())
            .append("email", getEmail())
            .append("content", getContent())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
